package com.example.cursor_service;

import com.example.cursor_orm.model.AttributePolicy;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface AttributePolicyService {
    AttributePolicy createPolicy(AttributePolicy policy);
    AttributePolicy getPolicyById(Integer id);
    AttributePolicy updatePolicy(Integer id, AttributePolicy policy);
    boolean deletePolicy(Integer id);
    List<AttributePolicy> getPolicyList(int page, int size);
    List<AttributePolicy> getPoliciesByRoleId(Integer roleId);
    List<AttributePolicy> getPoliciesByPermissionId(Integer permissionId);
    List<AttributePolicy> getPoliciesByAttribute(String key, String value);
} 